package com.ytxx.fit.project.service.impl;

import com.ytxx.fit.project.entity.User;
import com.ytxx.fit.project.mapper.UserMapper;
import com.ytxx.fit.project.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author sxm09
 * @className UserServiceImpl
 * @description TODO
 * @date 2022/2/25
 */
@Service
public class UserServiceImpl implements UserService {


    @Resource
    UserMapper userMapper;


    @Override
    public int add(User user) {
        int res = userMapper.add(user);
        return res;
    }
}
